package com.dcy.system.convert;

import com.dcy.system.vo.in.DictTypeCreateInVO;
import com.dcy.system.vo.in.DictTypeSearchInVO;
import com.dcy.system.vo.in.DictTypeUpdateInVO;
import com.dcy.system.vo.out.DictTypeListOutVO;
import com.dcy.system.model.DictType;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author：dcy
 * @Description:
 * @Date: 2020/10/23 9:28
 */
@Mapper
public interface DictTypeConvert {

    DictTypeConvert INSTANCE = Mappers.getMapper(DictTypeConvert.class);

    DictType toDictType(DictTypeSearchInVO dictTypeSearchInVO);

    DictType toDictType(DictTypeCreateInVO dictTypeCreateInVO);

    DictType toDictType(DictTypeUpdateInVO dictTypeUpdateInVO);

    DictTypeListOutVO toOut(DictType dictType);

    List<DictTypeListOutVO> toOutList(List<DictType> dictTypes);

}
